/**
 * 零基础学C语言
 * 
 * @version 1st
 * @author 明日科技
 * @see http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    int iSelect = 1;

    while(iSelect != 0) {
        // 显示菜单内容
        printf("----------- Menu -----------\n");
        printf("***** Sell ----------1\n");
        printf("***** Buy -----------2\n");
        printf("***** ShowProduct ---3\n");
        printf("***** Out -----------0\n");

        scanf("%d", &iSelect);
        switch(iSelect) {
            case 1:
                printf("you are selling to consumer\n");
                break;
            case 2:
                printf("you are buying something into store\n");
                break;
            case 3:
                printf("checking the store\n");
                break;
            case 0:
                printf("the program is out\n");
                break;
            default:
                printf("you put a wrong selection\n");
                break;
        }
    }

    return 0;
}

/*
output:

*/